package com.cn;

import com.alibaba.nacos.api.annotation.NacosProperties;
import com.alibaba.nacos.spring.context.annotation.EnableNacos;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author: chenyuncong
 * @Date: 2019/11/21 18:08
 */

@SpringBootApplication
@EnableDiscoveryClient
//@EnableNacosConfig(globalProperties = @NacosProperties(serverAddr = "${spring.cloud.nacos.config.server-addr}"))
@EnableNacos(globalProperties=@NacosProperties(serverAddr = "${spring.cloud.nacos.config.server-addr}"))
//@EnableNacosDiscovery(globalProperties=@NacosProperties(serverAddr = "${spring.cloud.nacos.config.server-addr}"))
public class ServiceGatewayApplication {
    public static void main(String[] args) throws Exception {
        SpringApplication.run(ServiceGatewayApplication.class, args);
    }
}
